<?php /* Smarty version 2.6.27, created on 2019-11-05 01:58:57
         compiled from usergroup/edit.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 't', 'usergroup/edit.tpl', 4, false),)), $this); ?>
<h3>
    <?php if ($this->_tpl_vars['usergroup']['groupid']): ?>
    修改用户组 - <?php echo $this->_tpl_vars['usergroup']['name']; ?>

    <?php else: ?><?php echo ((is_array($_tmp='添加用户组')) ? $this->_run_mod_handler('t', true, $_tmp) : t($_tmp)); ?>
<?php endif; ?>
</h3>
<form id="usergroup_edit_form" method="post" action="admin.php?ctrl=usergroup&act=edit_submit">
<table id="usergroup_edit" class="itable itable-color">
    <tr>
        <th width="20%"><?php echo ((is_array($_tmp='组名称')) ? $this->_run_mod_handler('t', true, $_tmp) : t($_tmp)); ?>
：</th>
        <td><input type="text" value="<?php echo $this->_tpl_vars['usergroup']['name']; ?>
" name="name"/></td>
    </tr>
    <tr>
        <th><?php echo ((is_array($_tmp='描述/说明')) ? $this->_run_mod_handler('t', true, $_tmp) : t($_tmp)); ?>
：</th>
        <td><textarea type="text" name="description" style="width:300px;height:80px;"><?php echo $this->_tpl_vars['usergroup']['description']; ?>
</textarea></td>
    </tr>
    
    <tr>
    <th><?php echo ((is_array($_tmp='ip白名单')) ? $this->_run_mod_handler('t', true, $_tmp) : t($_tmp)); ?>
：</th>
    <td>
    <textarea type="text" name="allow_ip" style="width:200px;height:100px;"><?php echo $this->_tpl_vars['usergroup']['allow_ip_data_show']; ?>
</textarea>
    <p style="display:block;width:280px;float:right;">
                <?php echo ((is_array($_tmp='为空则任意ip均可访问')) ? $this->_run_mod_handler('t', true, $_tmp) : t($_tmp)); ?>
<br/>
                <?php echo ((is_array($_tmp='否则只允许白名单上的ip访问')) ? $this->_run_mod_handler('t', true, $_tmp) : t($_tmp)); ?>
<br/>
                <?php echo ((is_array($_tmp='每个ip使用换行隔开')) ? $this->_run_mod_handler('t', true, $_tmp) : t($_tmp)); ?>
<br/>
		<!-- 支持规则: 单个ip: 192.168.1.1 <br>
		网段区间: 210.10.2.1-20 <br>
		整个网段: 222.34.4.* <br>
		多个ip: 10.10.10.[1|2|3|4] -->
    </p>
    </td></tr>
    <tr><td>复制权限</td>
    <td>
    <select name="copy_usergroup">
    
    </select>
    </td></tr>
    <tr><td></td>
    <td><input type="submit" class="gbutton" value="<?php echo ((is_array($_tmp='提交')) ? $this->_run_mod_handler('t', true, $_tmp) : t($_tmp)); ?>
" name="submit" style="float:right;"/></td></tr>
</table>
<input type="hidden" name="groupid" value="<?php echo $this->_tpl_vars['usergroup']['groupid']; ?>
"/>
</form>
<script type="text/javascript">
$("select[name=copy_usergroup]").html($("#usergroup_select").html());
$('#usergroup_edit_form').ajaxForm({
    complete: function(xhr) {
        var msg =xhr.responseText;
        $.dialog.alert(msg);
        if(msg=='success'){$usergroup_tabs.tabs('load', 0);}
    }
});
</script>